package org.mms.feign;

import org.mms.pojo.dto.UserDto;
import org.mms.pojo.util.ResponseMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(
        name = "mms-user-service",
        path = "/api/users",
        contextId = "userFeignService")
public interface UserFeignService {

    @GetMapping("/{id}")
    ResponseMessage<UserDto> getById(@PathVariable("id") Long id);
}